Add patch to remove useless #! from bash completions
authorSimon McVittie <smcv@debian.org>
Tue, 29 Aug 2017 17:12:01 +0000 (18:12 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 29 Aug 2017 17:12:01 +0000 (18:12 +0100)
debian/changelog
debian/patches/Remove-shebang-from-bash-completions.patch [new file with mode: 0644]
debian/patches/series

index 84ad56a0c316f0e367ab254471cadfb561a9b1ba..88eea24e984d1e0668b59c402aff3c8db32b352f 100644 (file)
@@ -9,6 +9,7 @@ ostree (2017.10-1) UNRELEASED; urgency=medium
     when splitting -arch/-indep builds.
   * Add patches to make the tests pass again when /var/tmp is on tmpfs,
     which does not support user xattrs
+  * Add patch to remove useless #! from bash completions
 
  -- Simon McVittie <smcv@debian.org>  Tue, 29 Aug 2017 16:08:09 +0100
 
diff --git a/debian/patches/Remove-shebang-from-bash-completions.patch b/debian/patches/Remove-shebang-from-bash-completions.patch
new file mode 100644 (file)
index 0000000..e1c3975
--- /dev/null
@@ -0,0 +1,22 @@
+From: Simon McVittie <smcv@collabora.com>
+Date: Tue, 29 Aug 2017 17:05:16 +0100
+Subject: Remove shebang from bash completions
+
+bash completions are to be sourced. It makes little sense to
+execute them.
+
+Signed-off-by: Simon McVittie <smcv@debian.org>
+---
+ bash/ostree | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/bash/ostree b/bash/ostree
+index f4305f6..da8b9af 100644
+--- a/bash/ostree
++++ b/bash/ostree
+@@ -1,5 +1,3 @@
+-#!/bin/bash
+-#
+ # bash completion file for ostree commands
+ #
+ # This script provides completion of:
index a2c88e21a25a17afb47fb6687557c965993e27a3..7bffb174a96d534d03dec033ee1587bb1badcbc6 100644 (file)
@@ -3,3 +3,4 @@ test-pull-bareuser.sh-This-test-uses-bare-user-hence-need.patch
 libtest-Allow-skipping-single-checks-without-user-xattrs.patch
 basic-test-Skip-explicit-uses-of-bare-user-if-no-user-xat.patch
 test-basic-user-only-Skip-final-step-if-no-user-xattrs.patch
+Remove-shebang-from-bash-completions.patch